package com.dobbinsoft.iotechn.device.exception;


import com.dobbinsoft.iotechn.core.exception.ServiceExceptionDefinition;

/**
 * Created with IntelliJ IDEA.
 * Description: 设备系统异常 ： 异常范围：12000 -12999
 * User: rize
 * Date: 2020/06/17
 */
public class DeviceExceptionDefinition {

    public static final ServiceExceptionDefinition DEVICE_UNKNOWN_EXCEPTION =
            new ServiceExceptionDefinition(12000, "设备系统未知异常", "Device system unknown exception!");

    public static final ServiceExceptionDefinition DEVICE_PARAM_CHECK_FAILED =
            new ServiceExceptionDefinition(12001, "设备系统参数校验失败", "Device system parameter verification failed!");

    public static final ServiceExceptionDefinition DEVICE_PRODUCT_NOT_EXIST =
            new ServiceExceptionDefinition(12002, "产品并不存在", "Product does not exist!");

    public static final ServiceExceptionDefinition DEVICE_PRODUCT_CONTROLLER_NUM_MUST_LT_TEN =
            new ServiceExceptionDefinition(12003, "产品遥控器最多10个", "Up to 10 product remote controls!");

    public static final ServiceExceptionDefinition DEVICE_PRODUCT_CONTROLLER_NOT_EXIST =
            new ServiceExceptionDefinition(12004,"产品遥控器并不存在", "Product remote control does not exist!");

    public static final ServiceExceptionDefinition DEVICE_PRODUCT_CONTROLLER_COMPONENT_NOT_EXIST =
            new ServiceExceptionDefinition(12005,"遥控器组件并不存在", "The remote control component does not exist!");

    public static final ServiceExceptionDefinition DEVICE_PRODUCT_CONTROLLER_COMPONENT_ATTR_VALUE_NOT_CONSISTENCY =
            new ServiceExceptionDefinition(12006, "请为遥控器所有属性赋值", "Please assign values to all attributes of the remote control");

    public static final ServiceExceptionDefinition DEVICE_PRODUCT_CONTROLLER_COMPONENT_ATTR_VALUE_CANNOT_BE_EMPTY =
            new ServiceExceptionDefinition(12007, "遥控器属性${0}不能为空");

    public static final ServiceExceptionDefinition DEVICE_PRODUCT_HAS_BUILT_DEVICE =
            new ServiceExceptionDefinition(12008, "产品已经创建设备，请使用强制删除", "The product has created a device, please use force delete");

    public static final ServiceExceptionDefinition DEVICE_DEVICE_NOT_EXIST =
            new ServiceExceptionDefinition(12101, "设备并不存在", "device does not exist");

    public static final ServiceExceptionDefinition DEVICE_YOU_ARE_THE_USER_OF_THIS_DEVICE =
            new ServiceExceptionDefinition(12102, "您已经是该设备的用户了~", "You are already a user of this device!");

    public static final ServiceExceptionDefinition DEVICE_NOT_BELONGS_TO_YOU =
            new ServiceExceptionDefinition(12103, "设备并不属于您!", "The device does not belong to you");

    public static final ServiceExceptionDefinition DEVICE_SEND_COMMAND_FAILED =
            new ServiceExceptionDefinition(12104, "发送命令失败，原因未知!", "Send command failed for unknown reason");

    public static final ServiceExceptionDefinition DEVICE_PERMISSION_DENY =
            new ServiceExceptionDefinition(12105, "设备权限拒绝!", "Device permission denied!");

}
